<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>大事件</title>
    <!-- 导入layui的样式 -->
    <link rel="stylesheet" href="./assets/lib/layui/css/layui.css">
    <!-- 导入自己的样式 -->
    <link rel="stylesheet" href="./assets/css/login.css">
</head>

<body>
    <div class="lacenteryui-main">
        <img src="./assets/images/logo.png" alt="">
    </div>
    <div class="formBox">
        <!-- 登录的div -->
        <div class='login-box' style='margin-top:70px'>
            <form class="layui-form" action="" id='form_login'>
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-username"></i>
                    <input id="login_username" type="text" name="title" required lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-password"></i>
                    <input id="login_password" type="password" name="title" required lay-verify="required|pwd" placeholder="请输入密码" autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-item">
                    <button class="layui-btn layui-btn-fluid" lay-submit>登录</button>
                </div>
                <div class="layui-form-item">
                    <a href="javascript:;" id='link_reg' class='flr'>去注册账号</a>
                </div>
            </form>
        </div>


        <!-- 注册的div -->
        <div class='reg-box' style='display:none;margin-top:70px'>
            <form class="layui-form" action="" id='form_reg'>
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-username"></i>
                    <input id='reg_username' type="text" name="title" required lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-password"></i>
                    <input id='reg_password' type="password" name="title" required lay-verify="required|pwd" placeholder="请输入密码" autocomplete="off" class="layui-input yanzheng">
                </div>
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-password"></i>
                    <input type="password" name="title" required lay-verify="required|pwd|repwd" placeholder="确认密码" autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-item">
                    <button class="layui-btn layui-btn-fluid" lay-submit>注册</button>
                </div>
                <div class="layui-form-item">
                    <a href="javascript:;" id='link_login' class='flr'>去登录账号</a>
                </div>
            </form>

        </div>
    </div>


    <script src="./assets/lib/layui/layui.all.js"></script>
    <script src="./assets/lib/jquery.js"></script>
    <script src="./assets/js/base.js"></script>
    <script src="./assets/js/login.js"></script>
</body>

</html>